PreviousNextTracker indexSee it online !

(96/308) 862 - gdbplugin - Breakpoints move when lines added or deleted

Try:

1. Set a breakpoint in code (say line 10).

2. Add a line of code above that breakpoint.

3. The breakpoint should be incremented to line 11, but is not.

This means that every time a line (even comment) is added or removed, all breakpoints are in the wrong place.

(Great work so far on gdbplugin. Let me know if I can help.)

Submitted blokeley - 2007-06-17 19:08:30 Assigned
Priority 5 Labels
Status open Group None
Resolution None

Comments

2007-06-17 19:49:07
*anonymous

- **assigned_to**: nobody --> shlomy

2007-06-17 19:49:07
*anonymous

Logged In: YES
user_id=1477607
Originator: NO

Right. I think the right solution to this is to react to buffer modifications the same way that markers do.

Regarding help: GdbPlugin is open source; if you want to contribute (e.g. by fixing this yourself) - you're more than welcome to do it. My development time of GdbPlugin is over. I only have time to support it, about 1-2 hours a week. And there's quite a lot to add to it, many little features as well as several large ones. (See TODO.txt in the root directory of the source tree for a start...)

Shlomy

2007-06-17 20:59:12
*anonymous

Updated GdbPlugin

GdbPlugin.jar (208.0Kio)

2007-06-17 20:59:13
*anonymous

Logged In: YES
user_id=1477607
Originator: NO

Should be fixed in SVN revision 9819. I've attached the updated GdbPlugin.jar, can you verify?
Thanks.
File Added: GdbPlugin.jar

2007-06-18 20:24:37
blokeley

Logged In: YES
user_id=1743859
Originator: YES

After I removed the extra directories in the GdbPlugin.jar file (see bug 1739342) the jar loads.

The breakpoint marker in the jEdit gutter moves correctly and gdb gets the new breakpoint line.

The line number in the breakpoints dockable is NOT updated.

2007-06-19 20:26:21
*anonymous

Logged In: YES
user_id=1477607
Originator: NO

I think the breakpoints dockable should be replaced by a modal breakpoint dialog. What do you say? I don't think it makes sense for a dockable window like the breakpoints dockable to be updated whenever the line number of a breakpoint changes as result of line insertion/deletion. Would it be okay to replace the dockable with a dialog?

2007-07-11 19:08:43
blokeley

Logged In: YES
user_id=1743859
Originator: YES

My humble opinion: keep the breakpoints view dockable, but only update it then the user saves the file.

Logic: the file must be saved to be compiled before debugging anyway.

2010-06-15 18:34:57
*anonymous

- **assigned_to**: shlomy --> nobody

2010-06-15 18:34:57
*anonymous

Unassigning myself, as I no longer maintain the plugin.

2011-12-05 01:10:09
ezust

- **assigned_to**: nobody --> shlomy

2011-12-08 20:32:54
*anonymous

Unassigning myself since I no longer maintain the plugin.

2011-12-08 20:32:54
*anonymous

- **assigned_to**: shlomy --> nobody